<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML>
<html>

<head>
    <title>后台管理系统</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="/cp/Public//assets/css/dpl-min.css" rel="stylesheet" type="text/css" />
    <link href="/cp/Public//assets/css/bui-min.css" rel="stylesheet" type="text/css" />
    <link href="/cp/Public//assets/css/main-min.css" rel="stylesheet" type="text/css" />
    <link href="http://g.alicdn.com/bui/bui/1.1.21/css/default/dpl.css" rel="stylesheet">
    <link href="http://g.alicdn.com/bui/bui/1.1.21/css/default/bui.css" rel="stylesheet">
    <link rel="stylesheet" href="http://g.tbcdn.cn/fi/bui/css/layout-min.css">
</head>

<body>
    <!--  <script src="http://g.tbcdn.cn/fi/bui/jquery-1.8.1.min.js"></script>
  <script src="http://g.alicdn.com/bui/bui/1.1.21/bui.js"></script>
    <div class="header">
        <div class="dl-title">
            <!--<img src="/chinapost/Public/assets/img/top.png">-->
        </div>
        <div class="dl-log"> 111<?php echo ($is_login); ?>欢迎您，<span class="dl-log-user"> <?php echo (session('user_auth')); ?></span><a href="<?php echo U('member/logout');?>" title="退出系统" class="dl-log-quit">[退出]</a>
        </div>
    </div>
    <div class="content">
        <div class="dl-main-nav">
            <div class="dl-inform">
                <div class="dl-inform-title">
                    <s class="dl-inform-icon dl-up"></s>
                </div>
            </div>
            <ul id="J_Nav" class="nav-list ks-clear">
                <li class="nav-item dl-selected">
                    <div class="nav-item-inner nav-home">运营商</div>
                </li>
                <!--<li class="nav-item ">-->
                    <!--<div class="nav-item-inner nav-order">移动</div>-->
                <!--</li>-->
            </ul>
        </div>
        <ul id="J_NavContent" class="dl-tab-conten">
        </ul>
    </div>
     <!--<script type="text/javascript" src="/cp/Public//assets/js/jquery-1.8.1.min.js"></script>-->
<!--<script type="text/javascript" src="/cp/Public//assets/js/bui-min.js"></script>-->
<!--<script type="text/javascript" src="/cp/Public//assets/js/common/main-min.js"></script>-->
<!--<script type="text/javascript" src="/cp/Public//assets/js/config-min.js"></script>-->
    <script src="http://g.tbcdn.cn/fi/bui/jquery-1.8.1.min.js"></script>
    <script src="http://g.alicdn.com/bui/bui/1.1.21/bui.js"></script>
    <script type="text/javascript">
    var urls = {
        menu_sync: "<?php echo U('report/index');?>",
        menu_count: "<?php echo U('report/payment');?>",
        menu_kou: "<?php echo U('config/syncConfig',array('category'=>0));?>",
        menu_kou_ring: "<?php echo U('config/syncConfig',array('category'=>1));?>",
        menu_kou_box: "<?php echo U('config/syncConfig',array('category'=>2));?>",
        menu_blacklist: "<?php echo U('config/blacklistConfig');?>",
        menu_province: "<?php echo U('config/provinceConfig');?>",
        menu_province_stat: "<?php echo U('stat/index',array('timeStamp'=>time()));?>",
        menu_sync_config: "<?php echo U('config/syncInterfaceConfig');?>",
        menu_search: "<?php echo U('report/search');?>",
        menu_province_search: "<?php echo U('stat/count');?>",
        menu_kou_ctcc: "<?php echo U('config/syncConfig',array('category'=>5));?>",
        menu_kou_cp: "<?php echo U('config/syncConfig',array('category'=>100));?>",
        menu_kou_ivr: "<?php echo U('config/syncConfig',array('category'=>1000));?>",
        menu_ivr_stat: "<?php echo U('ivr/index',array('timeStamp'=>time()));?>",
        menu_ivr_channel_count:"<?php echo U('/ivr/infoByChannel',array('product'=>'7'));?>",
        menu_ivr_privence_count:"<?php echo U('/ivr/infoByPrivence',array('product'=>'7'));?>",

        menu_kou_small: "<?php echo U('config/syncConfig',array('category'=>5000));?>",
        menu_small_stat: "<?php echo U('small/statByPrivence_',array('timeStamp'=>time()));?>",
        menu_small_channel_count:"<?php echo U('/small/infoByChannel',array('product'=>'8'));?>",

        menu_member_list: "<?php echo U('cuccmember/list_',array('timeStamp'=>time()));?>",
        menu_member_list1: "<?php echo U('cuccmember/list1_',array('timeStamp'=>time()));?>",
        menu_member_find: "<?php echo U('cuccmember/find_',array('timeStamp'=>time()));?>",
        menu_member_privence: "<?php echo U('cuccmember/privence_',array('timeStamp'=>time()));?>",


        menu_kou_migu: "<?php echo U('config/syncConfig',array('category'=>6000));?>",

        menu_migu_list: "<?php echo U('migu/list_',array('timeStamp'=>time()));?>",
        menu_migu_find: "<?php echo U('migu/find_',array('timeStamp'=>time()));?>",
        menu_ivr_allow: "<?php echo U('config/province_allow',array('timeStamp'=>time()));?>",
        menu_ivr_complaint: "<?php echo U('ivr/complaint_',array('timeStamp'=>time()));?>",






    }

    var rings = {
        menu_ring_order_w: "<?php echo U('ring/list_',array('product_type'=>0));?>",
        menu_ring_find: "<?php echo U('ring/find_',array('phone'=>'0000002491','product_type'=>0));?>",
        menu_ring_find_box: "<?php echo U('ring/find_',array('phone'=>'0000002491','product_type'=>1));?>",

        menu_ring_order_box: "<?php echo U('ring/list_',array('product_type'=>'1'));?>",

        menu_ring_order_ctcc: "<?php echo U('ctcc/list_',array('product_type'=>'0'));?>",
        menu_ring_order_ctcc_find: "<?php echo U('ctcc/find_',array('phone'=>'0000002491','product_type'=>0));?>",

        menu_ring_order_cp: "<?php echo U('cp/list_',array('product_type'=>'0'));?>",
        menu_ring_order_cp_find: "<?php echo U('cp/find_',array('phone'=>'0000002491','product_type'=>0));?>",

        menu_ivr_order: "<?php echo U('ivr/list_',array('product_type'=>'0'));?>",
        menu_ivr_find: "<?php echo U('ivr/find_',array('phone'=>'0000002491','product_type'=>0));?>",

        menu_small_order: "<?php echo U('small/list_',array('product_type'=>'0'));?>",
        menu_small_find: "<?php echo U('small/find_',array('phone'=>'0000002491','product_type'=>0));?>",



    }

    var channels = {
        menu_channel_list_wawa: "<?php echo U('channel/list_',array('product'=>'1'));?>",
        menu_channel_list_yu: "<?php echo U('channel/list_',array('product'=>'2'));?>",
        menu_channel_list_wawa_tonebox: "<?php echo U('channel/list_',array('product'=>'3'));?>",
        menu_channel_list_ctcc: "<?php echo U('channel/list_',array('product'=>'4'));?>",
        menu_channel_list_cp: "<?php echo U('channel/list_',array('product'=>'5'));?>",
        menu_channel_list_ivr: "<?php echo U('channel/list_',array('product'=>'6'));?>",
        menu_channel_list_small: "<?php echo U('channel/list_',array('product'=>'8'));?>",
        menu_channel_list_migu: "<?php echo U('channel/list_',array('product'=>'9'));?>",
        menu_channel_list_member: "<?php echo U('channel/list_',array('product'=>'20'));?>",



    }
    var menu_system = {
        text: '系统管理',
        id: '1',
        children: [{
            text: '扣率设置',
            id: '11',
            children: [{
                text: '宽带商城10元包/2元次',
                id: '111',
                href: urls['menu_kou']
            }, {
                text: '  联通炫铃5元包',
                id: '112',
                href: urls['menu_kou_ring']
            }, {
                text: '  联通铃音盒5元包/其他',
                id: '113',
                href: urls['menu_kou_box']
            },{
                text: '  电信5元包',
                id: '114',
                href: urls['menu_kou_ctcc']
            },{
                text: '  cp推广',
                id: '115',
                href: urls['menu_kou_cp']
            },{
                text: '  Ivr明星悄悄话',
                id: '116',
                href: urls['menu_kou_ivr']
            },{
                text: '小额支付',
                id: '117',
                href: urls['menu_kou_small']
            },
                {
                    text: '咪咕',
                    id: '118',
                    href: urls['menu_kou_migu']
                },
            ]
        }, {
            text: '渠道同步配置',
            id: '21',
            children: [{
                text: '宽带商城10元包/2元次',
                id: '211',
                href: urls['menu_sync_config']
            }, {
                text: '  挖哇炫铃5元包',
                id: '212',
                href: channels['menu_channel_list_wawa']
            }, {
                text: '  余音炫铃5元包',
                id: '213',
                href: channels['menu_channel_list_yu']
            }, {
                text: '  挖哇铃音盒5元包/其他',
                id: '214',
                href: channels['menu_channel_list_wawa_tonebox']
            },{
                text: '  电信5元包',
                id: '215',
                href: channels['menu_channel_list_ctcc']
            },{
                text: '  cp推广',
                id: '216',
                href: channels['menu_channel_list_cp']
            },
                {
                    text: 'Ivr明星悄悄话',
                    id: '217',
                    href: channels['menu_channel_list_ivr']
                },
                {
                    text: '小额支付',
                    id: '218',
                    href: channels['menu_channel_list_small']
                },

                {
                    text: '咪咕',
                    id: '219',
                    href: channels['menu_channel_list_migu']
                },
                {
                    text: 'APP会员',
                    id: '220',
                    href: channels['menu_channel_list_member']
                }
            ]
        },
            {
                text: '省份控制',
                id: '3',

                children: [{
                    text: '开通省份',
                    id: '311',
                    href: urls['menu_ivr_allow']
                },
                    ]
            },
            {
            text: '黑名单管理',
            id: '4',
            href: urls['menu_blacklist']
        }, {
            text: '联通号段库',
            id: '5',
            href: urls['menu_province']
        }]
    };
    var menu_operation = {
        text: '运营管理',
        id: '10',
        children: [

            {
                text: '宽带商城10元包/2元次',
                id: '101',
                children: [{
                    text: '实时数据',
                    id: '1011',
                    href: urls['menu_sync']
                }, {
                    text: '号码查询',
                    id: '1012',
                    href: urls['menu_search']
                }, {
                    text: '   区间统计',
                    id: '1013',
                    href: urls['menu_province_search']
                }, {
                    text: '  省份分布',
                    id: '1013',
                    href: urls['menu_province_stat']
                }]
            },

            {
                text: '联通（挖哇+余音）炫铃5元包',
                id: '102',
                children: [{
                        text: '实时数据',
                        id: '1021',
                        href: rings['menu_ring_order_w']
                    }, {
                        text: '号码查询',
                        id: '1022',
                        href: rings['menu_ring_find']
                    },

                ]
            },

            {
                text: '挖哇铃音盒5元包/其他',
                id: '103',
                children: [{
                        text: '实时数据',
                        id: '1031',
                        href: rings['menu_ring_order_box']
                    }, {
                        text: '号码查询',
                        id: '1032',
                        href: rings['menu_ring_find_box']
                    },

                ]
            },
            {
                text: '电信5元包',
                id: '104',
                children: [{
                    text: '实时数据',
                    id: '1041',
                    href: rings['menu_ring_order_ctcc']
                }, {
                    text: '号码查询',
                    id: '1042',
                    href: rings['menu_ring_order_ctcc_find']
                },

                ]
            },
            {
                text: 'cp推广',
                id: '105',
                children: [{
                    text: '实时数据',
                    id: '1051',
                    href: rings['menu_ring_order_cp']
                }, {
                    text: '号码查询',
                    id: '1052',
                    href: rings['menu_ring_order_cp_find']
                },

                ]
            },
            {
                text: 'Ivr明星悄悄话',
                id: '106',
                children: [{
                    text: '实时数据',
                    id: '1061',
                    href: rings['menu_ivr_order']
                }, {
                    text: '号码查询',
                    id: '1062',
                    href: rings['menu_ivr_find']
                },{
                    text: '渠道统计',
                    id: '1064',
                    href: urls['menu_ivr_channel_count']
                },
                    {
                        text: '投诉统计',
                        id: '1065',
                        href: urls['menu_ivr_complaint']
                    },


                ]
            },
            {
                text: '小额支付',
                id: '107',
                children: [{
                    text: '实时数据',
                    id: '1071',
                    href: rings['menu_small_order']
                }, {
                    text: '号码查询',
                    id: '1072',
                    href: rings['menu_small_find']
                },{
                    text: '省份分布',
                    id: '1073',
                    href: urls['menu_small_stat']
                },

                ]
            },
            {
                text: '会员服务',
                id: '108',
                children: [{
                    text: '实时数据',
                    id: '1081',
                    href: urls['menu_member_list']
                }, {
                    text: '实时数据自破',
                    id: '1084',
                    href: urls['menu_member_list1']
                },
                    {
                    text: '号码查询',
                    id: '1082',
                    href: urls['menu_member_find']
                },{
                    text: '省份分布',
                    id: '1083',
                    href: urls['menu_member_privence']
                },

                ]
            },
            {
                text: '咪咕',
                id: '109',
                children: [{
                    text: '实时数据',
                    id: '1091',
                    href: urls['menu_migu_list']
                }, {
                    text: '号码查询',
                    id: '1092',
                    href: urls['menu_migu_find']
                },

                ]
            },


        ]
    };


     var menu_operation1 = {
        text: '运营管理',
        id: '10',
        children: [

            {
                text: '挖哇铃音盒5元包/其他',
                id: '103',
                children: [{
                        text: '实时数据',
                        id: '1031',
                        href: rings['menu_ring_order_box']
                    }, {
                        text: '号码查询',
                        id: '1032',
                        href: rings['menu_ring_find_box']
                    },

                ]
            },


        ]
    };
    BUI.use(['bui/layout', 'bui/tab', 'bui/data', 'bui/tree', 'common/main'], function(Layout, Tab, Data, Tree) {

        var username = "<?php echo (session('user_auth')); ?>";
      
        var nodes;
       if ("admin"==username){
        nodes = [menu_system, menu_operation];
      }else{
        nodes = [ menu_operation1];
      }


        var control = new Layout.Viewport({
            width: 600,
            height: 500,
            elCls: 'ext-border-layout',
            children: [{
                xclass: 'controller',
                layout: {
                    region: 'south',
                    title: 'south',
                    fit: 'height',

                    height: 50
                },
                width: 250,
                content: '底部信息'
            }, {
                xclass: 'controller',
                layout: {
                    region: 'east',
                    fit: 'both',
                    collapsable: true,
                    collapsed: true,
                    title: '默认收缩',
                    width: 150
                },
                elCls: 'red',
                content: "三 自适应宽高"
            }, {
                layout: {
                    region: 'west',
                    fit: 'both', //height,width,both,none
                    title: '菜单',
                    collapsable: true,
                    width: 250
                },
                xclass: 'tree-list', //生成tree
                id: 'mytree',
                nodes: nodes

            }, {
                xclass: 'nav-tab', //Grid
                layout: {
                    region: 'center',
                    title: '',
                    fit: 'both'
                },
                id: 'tab'
            }],
            plugins: [Layout.Border]
        });

        control.render();
        var tab = control.getChild('tab'), //通过id获取
            tree = control.getChild('mytree', true); //级联查找树节点

        tree.on('itemclick', function(ev) {
            var node = ev.item,
                id = node.id,
                text = node.text,
                href = node.href;
            tab.addTab({
                title: text,
                href: href,
                id: id
            });
        });
    });
    </script>
    <!-- <script src="http://g.tbcdn.cn/fi/bui/jquery-1.8.1.min.js"></script> -->
    <!--  <script src="http://g.alicdn.com/bui/bui/1.1.21/bui.js"></script> -->
    <!--   <script type="text/javascript">
        BUI.use('bui/tree',function (Tree) {
        
      //树节点数据，
      //text : 文本，
      //id : 节点的id,
      //leaf ：标示是否叶子节点，可以不提供，根据childern,是否为空判断
      //expanded ： 是否默认展开
      var data = [ 
          {text : '1',id : '1',children: [{text : '11',id : '11'}]},
          {text : '2',id : '2',expanded : true,children : [
              {text : '21',id : '21',children : [{text : '211',id : '211'},{text : '212',id : '212'}]},
              {text : '22',id : '22'}
          ]},
          {text : '3',id : '3'},
          {text : '4',id : '4'}
        ];
      //由于这个树，不显示根节点，所以可以不指定根节点
      var tree = new Tree.TreeList({
        render : '#J_NavContent',
        nodes : data
      });
      tree.render();
 
      tree.on('itemclick',function(ev){
        var item = ev.item;
        alert(item);
      });
    });
    </script> -->
    <!-- <script>
     var urls = {
        menu_sync: "<?php echo U('report/index');?>",
        menu_count: "<?php echo U('report/payment');?>",
        menu_kou: "<?php echo U('config/syncConfig');?>",
        menu_blacklist: "<?php echo U('config/blacklistConfig');?>",
        menu_province: "<?php echo U('config/provinceConfig');?>",
        menu_province_stat: "<?php echo U('stat/index',array('timeStamp'=>time()));?>",
        menu_sync_config: "<?php echo U('config/syncInterfaceConfig');?>",
        menu_search: "<?php echo U('report/search');?>",
        menu_province_search:"<?php echo U('stat/count');?>",

    }

    var rings = {
        menu_ring_order_w:"<?php echo U('ring/list_',array('product_id'=>'0000002490'));?>",
        menu_ring_order_y:"<?php echo U('ring/list_',array('product_id'=>'0000002491'));?>",
        menu_ring_config_w:"<?php echo U('config/ringconfig',array('product_id'=>'0000002491'));?>",

    }

    var  channels = {
        menu_channel_list:"<?php echo U('channel/list_',array('product_id'=>'0000002490'));?>",
      

    }

    BUI.use(['common/main','bui/tree'],function(){
        var config = [
        {id:'1',menu:[
            {text:'系统管理',icon:"",items:[
                {id:"1",menu:[
                    {text:'扣率设置',icon:"",items:[
                             {id:'1',text:'同步状态',href:urls['menu_sync']},

                    ]},

                ]},
                // {id:'1',text:'同步状态',href:urls['menu_sync']},
                // {id:'2',text:'结算报表',href:urls['menu_count']},
                // {id:'3',text:'扣率设置',href:urls['menu_kou']},
                // {id:'4',text:'黑名单管理',href:urls['menu_blacklist']},
                // {id:'5',text:'省份管理',href:urls['menu_province']},
                // {id:'6',text:'同步配置',href:urls['menu_sync_config']},
                // {id:'7',text:'查找记录',href:urls['menu_search']},
                // {id:'8',text:'统计',href:urls['menu_province_stat']},
                // {id:'9',text:'区间统计',href:urls['menu_province_search']},
                ]
            },


            {text:'彩铃管理',items:[
                {id:'21',text:'挖哇',href:rings['menu_ring_order_w']},
                 {id:'22',text:'余音',href:rings['menu_ring_order_y']},
                 {id:'33',text:'扣率设置',href:rings['menu_ring_config_w']},
                
                ]
            },
            {text:'渠道管理',items:[
                {id:'31',text:'渠道列表',href:channels['menu_channel_list']},
               
                
                ]
            },
        ]
        },

        {id:'7',homePage : '9',menu:[{text:'业务管理',items:[{id:'9',text:'查询业务',href:'Node/index.html'}]}]}

        ];
        new PageUtil.MainPage({
            modulesConfig : config
        });
    });
</script> -->
    <div style="text-align:center;">
    </div>
</body>

</html>